@alexpul said in Turn GPS back on after pytrack.go_to_sleep(gps=False):
I am using pytrack.go_to_sleep(gps=False)
in the lib/pycoproc.py define your own funcion:
def gps_state(self, gps=True):
# enable or disable back-up power to the GPS receiver
if gps:
self.set_bits_in_memory(PORTC_ADDR, 1 << 7)
else:
self.mask_bits_in_memory(PORTC_ADDR, ~(1 << 7))
easiest way is for you to search for "def go_to_sleep(self, gps=True)" in the file, and place your custom function above or below it :-) ...
and then you can execute it (Turn on):
pytrack.gps_state()
and (Turn off):
pytrack.gps_state(gps=False)
good luck 👍🏻